public class demo7 {
    public static void main(String[] args) {
        Thread thread = Thread.currentThread();    //获取当前对象实例
        System.out.println(thread.getName());
    }






}
